/*
 * 1222. Getter与Setter
 * 实现一个School的类，包含下面的这些属性和方法:
 * 一个string类型的私有成员name.
 * 一个setter方法setName，包含一个参数name.
 * 一个getter方法getName，返回该对象的name。
 * https://www.lintcode.com/problem/setter-and-getter/description
 * 
 * 样例
 * Java:
 * School school = new School();
 * school.setName("MIT");
 * school.getName(); // should return "MIT" as a result.
 * 
 * Python:
 * school = School();
 * school.setName("MIT")
 * school.getName() # should return "MIT" as a result.
 * 
 * 2018.06.09 @jeyming
 */
package setter_and_getter_1222;

class School {
    /*
     * Declare a private attribute *name* of type string.
     */
    // write your code here
    private String name;

    /**
     * Declare a setter method `setName` which expect a parameter *name*.
     */
    // write your code here
    public void setName(String name){
        this.name = name;
    }

    /**
     * Declare a getter method `getName` which expect no parameter and return
     * the name of this school
     */
    // write your code here
    public String getName(){
        return this.name;
    }
}

public class Setter_and_getter_1222 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
